package com.easyedu.core.util;


/**
 * @author liumengran
 */
public class BuildRedisKey {

    private static final String COLON = ":";

    public static String buildCourse(String courseNumber) {
        return courseNumber + COLON + "course_msg";
    }

    public static String buildCourseTeacher(long teacherId) {
        return teacherId + COLON + "course_teacher";
    }

    public static String buildCourseSelection(long openInstituteId, long openDepartmentId, long openYear) {
        return openInstituteId + COLON + openDepartmentId + COLON + openYear + COLON + "selection";
    }

    public static String buildCourseCapacity(String courseNumber) {
        return courseNumber + COLON + "free_capacity";
    }

    public static String buildStudentSelection(Long studentNumber) {
        return studentNumber + COLON + "student_selection";
    }

    public static String buildCourseStudentList(String courseNumber) {
        return courseNumber + COLON + "student_list";
    }
}
